package cn.kgc.vue.exceptions;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 课工场
 * @date 2024/9/27
 * @description  自定义业务异常
 */
@Data
@NoArgsConstructor
public class BusinessException extends RuntimeException {

    private String message;
    private Integer code;

    public BusinessException(Integer code,String message){
            this.message = message;
            this.code = code;
    }

}
